﻿import request from '/@/utils/request';
enum Api {
  AddSysClass = '/api/sysClass/add',
  DeleteSysClass = '/api/sysClass/delete',
  EnableSysClass = '/api/sysClass/Enable',
  UpdateSysClass = '/api/sysClass/update',
  PageSysClass = '/api/sysClass/page',
}

// 增加系统字典编码
export const addSysClass = (params?: any) =>
	request({
		url: Api.AddSysClass,
		method: 'post',
		data: params,
	});

// 删除系统字典编码
export const deleteSysClass = (params?: any) => 
	request({
			url: Api.DeleteSysClass,
			method: 'post',
			data: params,
		});
// 启用系统字典编码
export const enableSysClass = (params?: any) => 
	request({
			url: Api.EnableSysClass,
			method: 'post',
			data: params,
		});		

// 编辑系统字典编码
export const updateSysClass = (params?: any) => 
	request({
			url: Api.UpdateSysClass,
			method: 'post',
			data: params,
		});

// 分页查询系统字典编码
export const pageSysClass = (params?: any) => 
	request({
			url: Api.PageSysClass,
			method: 'post',
			data: params,
		});


